testsuite: Avoid a compiler warning
authorMatthias Clasen <mclasen@redhat.com>
Thu, 17 Jun 2021 13:37:45 +0000 (09:37 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 17 Jun 2021 13:37:45 +0000 (09:37 -0400)
This was showing up in ci on macos.

testsuite/gdk/clipboard-client.c

index b27da9220502d50e9e0947bac27739ee867df5ac..07a3961e5a801013eaaa0825150486e9e0ecfb47 100644 (file)
@@ -318,7 +318,6 @@ do_it (GObject    *object,
 int
 main (int argc, char *argv[])
 {
-  GtkWidget *window;
   gboolean done = FALSE;
 
   if (argc < 2)
@@ -355,6 +354,8 @@ main (int argc, char *argv[])
 #ifdef GDK_WINDOWING_WAYLAND
   if (GDK_IS_WAYLAND_DISPLAY (gdk_display_get_default ()))
     {
+      GtkWidget *window;
+
       window = gtk_window_new ();
       gtk_window_present (GTK_WINDOW (window));
       handler = g_signal_connect (window, "notify::is-active", G_CALLBACK (do_it), NULL);